-
Notifications
You must be signed in to change notification settings - Fork 612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement flux debug kustomization
command
#5117
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Stefan Prodan <[email protected]>
Signed-off-by: Stefan Prodan <[email protected]>
Signed-off-by: Stefan Prodan <[email protected]>
Signed-off-by: Stefan Prodan <[email protected]>
} | ||
testEnv.CreateObjectFile(objectFile, tmpl, t) | ||
|
||
cases := []struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add 2 more tests: one for both flags set, and one for neither flags set?
Signed-off-by: Stefan Prodan <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Left a comment about similar changes to debug helmrelease
, which can be addresses here or separately.
if (!debugKustomizationArgs.showStatus && !debugKustomizationArgs.showVars) || | ||
(debugKustomizationArgs.showStatus && debugKustomizationArgs.showVars) { | ||
return fmt.Errorf("either --show-status or --show-vars must be set") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed before, we need to do this for debug helmrelease too. Maybe as part of this change or a separate PR.
Signed-off-by: Stefan Prodan <[email protected]>
This PR implements the
flux debug ks
command as specified in #5109Followup: #5106
Closes: #5109